package com.loukou.lkt.lkt.enums;


public enum IsGiftTypeEnum {

	//是否赠品， 0否，1是
	
	TYPE_NO( 0, "否" ),
	
	TYPE_YES( 1, "是" );
	
	private int type;
	private String comment;
	
	IsGiftTypeEnum( int type, String comment) {
		this.type = type;
		this.comment = comment;
	}

	public static IsGiftTypeEnum parseIsGiftEnum(int type) {
		for (IsGiftTypeEnum stateEnum : IsGiftTypeEnum.values()) {
			if(stateEnum.type == type){
				return stateEnum;
			}
		}
		return TYPE_NO;
	}
	
	public int getType() {
		return type;
	}
	
	public void setType(int type) {
		this.type = type;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	
	
}
